package com.usian.day12.scheduled.jobservice;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author baimugudu
 * @email 2415621370@qq.com
 * @date 2023/8/9 9:50
 */
@Slf4j
@Component
public class MyJob {

    @Scheduled(cron = "0/1 * * * * ? ")
    public void  eat(){
        log.info("eat--------------------");
    }
}
